import { QueryReplyModel } from '@/bean/xhr';
import ajax from '.';
import { IDataType } from './type';

class ReplyService {
  // Page = (params: QueryPageModel): Promise<PageResponse<ArticleDTO>> =>
  //   ajax.get('/article/page', { params });

  // 这里的参数貌似很难判断,所以写出具体参数类型
  public add = (params: QueryReplyModel): Promise<IDataType> =>
    ajax.post('/reply/add', params);
}

export const replyService = new ReplyService();
